package com.itheima.mapper;

import com.itheima.DTO.SysUserPageDTO;
import com.itheima.entity.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SysUserMapper {

    SysUser selectUserInfoByRoleId(String loginUserId);

    void updateSysUserById(SysUser sysUser);

    SysUser selectSysUserByName(String loginName);

    List<SysUser> selectSysUserByLoginName(SysUserPageDTO sysUserPageDTO);

    void insertSysUser(SysUser sysUser);

    SysUser selectUserById(String id);

    void deleteSysUserById(String id);

    void updateSysUser(SysUser sysUser);

    @Select("select count(*) from sys_user")
    Integer selectCount();

}
